count number of enum values C#

97

count number of enum values C# -

int count = Enum.GetValues(typeof(EnumType)).Length;

Comments

Submit
0 Comments